from django.urls import re_path, path
from . import views

urlpatterns = [
    # 添加订单
    re_path(r'^api/v1.0/orders/$', views.CreateOrderView.as_view()),
    # 接单和拒单
    path('api/v1.0/orders/<int:order_id>/status/', views.AcceptOrderView.as_view()),
    # 评论接口
    path('api/v1.0/orders/<int:order_id>/comment', views.CommentView.as_view()),
]